home *** CD-ROM | disk | FTP | other *** search
/ QuickTime 2.0 Developer Kit / QuickTime 2.0 Developer Kit.iso / mac / MAC / Programming Stuff / Sample Code / Movie Toolbox / Inside Mac Movie Toolbox Code / mtb5.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-05  |  729 b   |  47 lines  |  [TEXT/MPS ]

  1. /*
  2.   File:            mtb5.c
  3.   Contains:        Main Function
  4.   Written by:    DTS and QT Engineering
  5.   Copyright:    © 1992-1994 by Apple Computer, Inc., all rights reserved.
  6.   Change History (most recent first):
  7.   <1>         12/4/94    khs        changed the format of the file to the new look and feel
  8.   To Do:
  9. */
  10.  
  11.  
  12. // INCLUDES
  13. #include "mtb.h"
  14.  
  15.  
  16. // FUNCTIONS
  17. void InitMovieToolbox(void)
  18. {
  19.     OSErr err;
  20.  
  21.     InitGraf(&qd.thePort);
  22.     InitFonts();
  23.     InitWindows();
  24.     InitMenus();
  25.     TEInit();
  26.     InitDialogs(nil);
  27.     MaxApplZone();
  28.  
  29.     if (!IsQuickTimeInstalled())
  30.     {
  31.         CheckError(-1, "\pPlease install QuickTime and try again.");
  32.     }
  33.  
  34.     err = EnterMovies();
  35.     CheckError(err, "\pEnterMovies");
  36. }
  37.  
  38.  
  39. // MAIN FUNCTION
  40. void main(void)
  41. {
  42.     InitMovieToolbox();
  43.     CreateMyCoolMovie();
  44. }
  45.  
  46.  
  47.